import dayjs from 'dayjs'

export default {
    filters: {
        format(val, format) {
            console.log(val,format);
            if (!val) return val
            if(format) return dayjs(val).format(format);
            return val
        }
    }
}